import {
  SAVE_SITE_INFO,
  SAVE_INTRODUCTION,
  SAVE_ROLLTEXT
} from "@/store/mutations-types"

const site = {
  state: {
    siteInfo: {},
    introduction: {
      avatar: '',
      name: '',
      github: '',
      telegram: '',
      qq: '',
      bilibili: '',
      netease: '',
      email: '',
      rollText: [],
      favorites: []
    },
    rollText: [],
    favorites: []
  },

  mutations: {
    [SAVE_SITE_INFO] (state, siteInfo) {
      state.siteInfo = siteInfo
    },
    [SAVE_INTRODUCTION] (state, introduction) {
      state.introduction = introduction
    },
    [SAVE_ROLLTEXT] (state, rollText) {
      state.rollText = rollText
    },
  },

  actions: {
  }
}

export default site